﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Orange.Logistics.Models {
    public class Memorycard {
        [Key]
        [Column("Memoryid", Order = 1), MaxLength(20)]
        [Required(ErrorMessage = "*")]
        public string Memoryid { get; set; }

        [Key]
        [Column("Memorycard", Order = 2), MaxLength(50)]
        [Required(ErrorMessage = "*")]
        public string MemorycardName { get; set; }

        [Column("Stockinid"), MaxLength(20)]
        public string Stockinid { get; set; }

        [Column("Smanualno"), MaxLength(20)]
        public string Smanualno { get; set; }

        [Column("Recargoid"), MaxLength(20)]
        public string Recargoid { get; set; }

        [Column("Manualno"), MaxLength(20)]
        public string Manualno { get; set; }

        [Column("Customerid"), MaxLength(20)]
        public string Customerid { get; set; }

        [Column("Customername"), MaxLength(50)]
        public string Customername { get; set; }

        [Column("Conid"), MaxLength(20)]
        public string Conid { get; set; }

        [Column("Mncode"), MaxLength(20)]
        public string Mncode { get; set; }

        [Column("Arrivalwayid"), MaxLength(20)]
        public string Arrivalwayid { get; set; }

        [Column("Arrivalwayname"), MaxLength(50)]
        public string Arrivalwayname { get; set; }

        [Column("Carno"), MaxLength(50)]
        public string Carno { get; set; }

        [Column("Acceptanceid"), MaxLength(20)]
        public string Acceptanceid { get; set; }

        [Column("Acceptance"), MaxLength(50)]
        public string Acceptance { get; set; }

        [Column("Sid"), MaxLength(20)]
        public string Sid { get; set; }

        [Column("Contactor"), MaxLength(20)]
        public string Contactor { get; set; }

        [Column("Proid"), MaxLength(20)]
        public string Proid { get; set; }

        [Column("Proname"), MaxLength(100)]
        public string Proname { get; set; }

        [Column("Brandname"), MaxLength(100)]
        public string Brandname { get; set; }

        [Column("Moname"), MaxLength(100)]
        public string Moname { get; set; }

        [Column("Maname"), MaxLength(100)]
        public string Maname { get; set; }

        [Column("Baname"), MaxLength(100)]
        public string Baname { get; set; }

        [Column("Hottoys")]
        public int? Hottoys { get; set; }

        [Column("Qunit"), MaxLength(100)]
        public string Qunit { get; set; }

        [Column("Wunit"), MaxLength(100)]
        public string Wunit { get; set; }

        [Column("Scurinrpieces")]
        public int? Scurinrpieces { get; set; }

        [Column("ScurinWeight")]
        public decimal? ScurinWeight { get; set; }

        [Column("Scuroutrpieces")]
        public int? Scuroutrpieces { get; set; }

        [Column("ScuroutWeight")]
        [DisplayFormat(DataFormatString = "{0:0.000}")]
        public decimal? ScuroutWeight { get; set; }

        [Column("Srpieces"), Display()]
        public int? Srpieces { get; set; }

        [Column("Sweight")]
        public decimal? Sweight { get; set; }

        [Column("Status"), MaxLength(20)]
        public string Status { get; set; }

        [Column("Modifyuser"), MaxLength(12)]
        public string Modifyuser { get; set; }

        [Column("Modifytime")]
        public DateTime? Modifytime { get; set; }

        [Column("Supplyunit"), MaxLength(50)]
        public string Supplyunit { get; set; }

        [Column("Remark"), MaxLength(255)]
        public string Remark { get; set; }

        [Column("Isallstockin")]
        public bool? Isallstockin { get; set; }

        [Column("Scustomerid"), MaxLength(20)]
        public string Scustomerid { get; set; }

        [Column("Scustomername"), MaxLength(50)]
        public string Scustomername { get; set; }

        [Column("Stockindate")]
        public DateTime? Stockindate { get; set; }

        [Column("Sourceorder"), MaxLength(20)]
        public string Sourceorder { get; set; }

    }
}
